import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";

@Entity({name:'token'})
export class TokenEntity{
    @PrimaryGeneratedColumn()
    id:number

    @Column({name:'user_name',unique:true})
    userName:string

    @Column({name:'nick_name',unique:true})
    nickName:string

    @Column()
    password:string

    @Column()
    gender:number

    @Column({nullable:true})
    email:string

    @Column()
    age:number

    @Column({unique:true})
    phone:string
}